public class Teacher {
    private String id;
    private String name;
    private int age;
    private String subject;
    private String password;
    private String schedule;

    public Teacher() {}

    public Teacher(String id, String name, int age, String subject, String password, String schedule) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.subject = subject;
        this.password = password;
        this.schedule = schedule;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSchedule() {
        return schedule;
    }

    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;
        Teacher teacher = (Teacher) obj;
        return id.equals(teacher.id);
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
